-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6781 my data render #6802
6781 my data render #6802
Conversation
dv = ds.getReleasedVersion(); | ||
DatasetVersion dv = null; | ||
|
||
for (DatasetVersion v : ds.getVersions()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good, but let's move this logic onto a method on Dataset (in case we need to use it elsewhere some time, and then it makes this fewer lines, ie.
DatasetVersion dv = ds.getVersion(this.datasetVersionId);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the suggested method to Dataset
What this PR does / why we need it:
Fixes MyData rendering
Which issue(s) this PR closes:
Closes #6781
Special notes for your reviewer:
Gets dataset version based on the versionId saved in the SolrSearchResult
Suggestions on how to test this:
Cannot be a super user. Also try oddball cases like only a draft and/or all versions deaccessioned.
Does this PR introduce a user interface change?:
No
Is there a release notes update needed for this change?:
No
Additional documentation:
None